package acmCoder;

import java.util.Scanner;

public class AC2002 {

	public static double PI=3.1415927;
	public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		while (scanner.hasNext()) {
			String a=scanner.nextLine();
            String[] word=a.split(" ");
            for(int i=0;i<word.length;i++){
            	char[] wordChar=word[i].toCharArray();
            	wordChar[0]=Character.toUpperCase(wordChar[0]);
            	if (i<word.length-1) {
            		System.out.print(String.copyValueOf(wordChar)+" ");
				}else {
					System.out.print(String.copyValueOf(wordChar));
				}
            }
            System.out.println();
		}
		scanner.close();
		/*while (scanner.hasNext()) {
			double a=scanner.nextDouble();
			System.out.printf("%.3f\n",4*PI*a*a*a/3);
		}
		scanner.close();*/
	}
}
